
#ifndef __ADS1263_H__
#define __ADS1263_H__

class ADS1263
{
private:
    uint8 SpiReadWrite(uint8 data);
    uint8 ReadRegister1(uint8 reg);
    void WriteRegister1(uint8 reg, uint8 value);
    void WriteCmd1(uint8 cmd);
    long ReadAdcData1(void);
    uint8 ReadRegister2(uint8 reg);
    void WriteRegister2(uint8 reg, uint8 value);
    void WriteCmd2(uint8 cmd);
    long ReadAdcData2(void);
public:
    uint8 AdcChan1;
    uint8 AdcChan2;
    long AdcBuff[20];
    
    ADS1263(void);
    void ChipReset(uint8 inx);
    void ReadResultStartConver(void);
};
extern ADS1263 Ads1263;

#endif
